package com.wanmait.wisdom.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.wisdom.entity.Resident;
import com.wanmait.wisdom.util.AjaxResult;

public interface WebResidentService extends IService<Resident> {

    Resident login(Resident resident);

    Resident loginWithOtherPhone(Resident resident);

    void sendCode(String phone,String code);

    Resident findById(Integer id);

    Resident getResidentByPhone1(String phone);
    Resident getResidentByPhone2(String phone);

    void updateEmail(Integer id, String email);

    void updatePhone1(Integer id, String phone1);
    void updatePhone2(Integer id, String phone2);

    void sendCode2(String phone, String s);

    Integer getCountByPhone(String phone);
}
